Package-level declarations

This package contains the Younify Connect SDK main objects and types.

Types

Link copied to clipboard
object Connect

Younify Connect SDK main object.

Link copied to clipboard
data class ConnectOptions(var key: String?, var logLevel: LogLevel = LogLevel.Warning, var logListener: LogListener?, var tokenHandler: TokenHandler?, var accessToken: String?, var refreshToken: String?, var extra: Map<String, Any>?)

Younify Connect SDK startup options.

Link copied to clipboard
enum Errors : Enum<Errors>
Link copied to clipboard
data class FetchContentCategoryResult(val category: StreamingCategory, val services: List<FetchContentCategoryServiceResult> = mutableListOf()) : Parcelable

Fetch content category result.

Link copied to clipboard
data class FetchContentCategoryServiceResult(val service: StreamingService, val content: List<StreamingContent> = mutableListOf()) : Parcelable

Fetch content category service result.

Link copied to clipboard
Link copied to clipboard

A generic exception interface that all sdk exception classes implement.

Link copied to clipboard

A generic exception class that implements the generic exception interface.

Link copied to clipboard

Collection of keys supported by GenericException.userInfo.

Link copied to clipboard

An invalid argument was encountered.

Link copied to clipboard

This view context is invalid.

Link copied to clipboard

Log level.

Link copied to clipboard
interface LogListener

Optionally implement this interface to receive log events from the sdk. The instance can be set in ConnectOptions.

Link copied to clipboard

A network error occurred. The user is either offline or the server returned an invalid response.

Link copied to clipboard

The requested operation has been canceled.

Link copied to clipboard
typealias RenewTokensCallback = (newAccessToken: String?, newRefreshToken: String?) -> Unit
Link copied to clipboard

The current version of the SDK is no longer supported.

Link copied to clipboard
data class SearchContentServiceResult(val service: StreamingService, val content: List<StreamingContent> = mutableListOf()) : Parcelable

Search content service result.

Link copied to clipboard

This service content may no longer be available.

Link copied to clipboard

The service fetch operation failed.

Link copied to clipboard

The service linking operation failed.

Link copied to clipboard

The service login failed. The user should verify their login information.

Link copied to clipboard

The service profile was not found. The user should select another profile.

Link copied to clipboard

The service profile pin was not correct. The user should enter their pin again.

Link copied to clipboard

The service is temporarily unavailable.

Link copied to clipboard

The service is not supported by the SDK.

Link copied to clipboard

Well-known streaming service categories.

Link copied to clipboard
data class StreamingCategory(var name: String) : Parcelable

Streaming service content category.

Link copied to clipboard
data class StreamingContent(var type: StreamingContentType, var name: String, var title: String, var overview: String?, var duration: Long, var airDate: Date?, val smallThumbnailUrl: String?, val largeThumbnailUrl: String?, var itemID: String?, var series: String?, var season: String?, var episode: String?, var releaseYear: String?, var contentRating: String?, var watchNowUrl: String?, var tmdbID: String?, var tmdbSeriesID: String?, var path: List<String>) : Parcelable

Streaming service content.

Link copied to clipboard
data class StreamingContentDetails(var estimatedDuration: Long?) : Parcelable

Streaming service content details.

Link copied to clipboard

Streaming service content type.

Link copied to clipboard
data class StreamingService(var name: String, var smallThumbnailUrl: String?, var largeThumbnailUrl: String?, var overlayThumbnailUrl: String?, var isAvailable: Boolean, var link: StreamingServiceLink?) : Parcelable

Streaming service.

Link copied to clipboard
data class StreamingServiceLink(var username: String?, var profileName: String?, var profileImageUrl: String?, var isProfilePINProtected: Boolean?, var isBroken: Boolean) : Parcelable

Streaming service link.

Link copied to clipboard

The system is currently down for maintenance.

Link copied to clipboard
interface TokenHandler

Token handler.

Link copied to clipboard

An unknown error occurred.

Link copied to clipboard

The user tried to perform an action that requires privacy policy consent.